package com.buer.storage.business.dao;


import com.buer.storage.business.domain.Supplier;
import com.buer.storage.business.dto.SupplierDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SupplierDao {
    //增加供应商
    int insert(SupplierDto supplierDto);
    //删除供应商
    int delete(int supplierId);
    //修改供应商
    int update(Supplier supplier);
    //查询所有供应商
    List<Supplier> findAllSupplier();

    List<Supplier> searchSupplier(String supplierCode, String supplierName);
}
